package com.study.ktandroid.coroutines_apply.apply.network

import com.study.ktandroid.coroutines_apply.apply.bean.ImageDataResponseBody
import retrofit2.http.GET
import retrofit2.http.Query

interface ApiService {

    //声明为suspend方法,将retrofit与协程完美融合
    @GET("image/sogou/api.php")
    suspend fun getImage(@Query("type") type: String = "json"): ImageDataResponseBody
}